package com.ma;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/**
 * Selects which type of media the user wants to take.
 * @author Danny
 *
 */
public class TakeMedia extends Activity implements OnClickListener
{
	/** Called when the activity is first created. */
	Button picture, video, audio;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.selectmedia);
        picture=(Button)findViewById(R.id.picture);
        video=(Button)findViewById(R.id.video);
        audio=(Button)findViewById(R.id.audio);
        picture.setOnClickListener(this);
        video.setOnClickListener(this);
        audio.setOnClickListener(this);
    }

	@Override
	public void onClick(View arg0)
	{
		if(arg0.equals(picture))
		{
			
		}
		else if(arg0.equals(video))
		{
			
		}
		else if(arg0.equals(audio))
		{
			Intent i=new Intent(this, AudioRecord.class);
			startActivity(i);
		}
	}
}
